package seentao.stdev.mobile.util;

import java.util.Random;

public class IDGenerator {
	
	public static Random r = new Random();

	public static String gen(int len) {
		double bound = Math.pow(16, len + 2);
		long val = ((long) (r.nextDouble() * bound)) | 0;
		return Long.toHexString(val).substring(2);
	}
	
	public static void main(String[] args) {
		System.out.println(gen(6));
	}
}
